package com.hey.qrcode.controller;

import com.hey.qrcode.common.result.SingleResult;
import com.hey.qrcode.common.utils.WxUtil;
import com.hey.qrcode.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CodeController {

    @Autowired
    CodeService codeService;

    @GetMapping("test")
    public SingleResult test(){
        WxUtil util = new WxUtil();
        return new SingleResult(util.getQrCodeUrl());
    }

}
